package pool;

import java.util.concurrent.*;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/17
 * @VERSION 1.0
 * @DESC
 */
public class ThreadPoolDemo {
    public static void main(String[] args) throws InterruptedException {
        //Executor executor =  new ThreadPoolExecutor(3,2,1, TimeUnit.SECONDS)
         new ConcurrentHashMap<>();
         new ConcurrentLinkedQueue<>();
         new CopyOnWriteArrayList<>();
         new CopyOnWriteArraySet<>();

         CountDownLatch countDownLatch = new CountDownLatch(6);
         countDownLatch.countDown();
         //等待阻塞
         countDownLatch.await();

//         CyclicBarrier cyclicBarrier = new CyclicBarrier(1);
//         cyclicBarrier.await()

//        Semaphore;
//        DelayQueue queue = new DelayQueue();
//        Delayed delayed = ;
//        queue.offer(delayed)
    }
}
